namespace ICSharpCode.TextEditor.Document
{
    public class XmlFoldStart
    {
        private int line = 0;

        private int col = 0;

        private string prefix = string.Empty;

        private string name = string.Empty;

        private string foldText = string.Empty;

        public int Line => line;

        public int Column => col;

        public string Name
        {
            get
            {
                if (prefix.Length > 0)
                {
                    return prefix + ":" + name;
                }
                return name;
            }
        }

        public string FoldText
        {
            get
            {
                return foldText;
            }
            set
            {
                foldText = value;
            }
        }

        public XmlFoldStart(string prefix, string name, int line, int col)
        {
            this.line = line;
            this.col = col;
            this.prefix = prefix;
            this.name = name;
        }
    }
}
